package com.guzhen.wallpager;

import android.view.animation.Interpolator;

public class InterpolatorDurationHandle {
    private long lottieDuration;
    private int IIL11;
    private int IliLLi1;
    private int L1lLIll1lI1;
    private float LilIiL;
    public boolean iLiLiIL1L;
    private float ii1L1lILLI;
    public boolean ilIIL1IiL;
    public Interpolator interpolator;

    public InterpolatorDurationHandle() {
        this.LilIiL = 1.0f;
    }

    public InterpolatorDurationHandle(long v) {
        this.LilIiL = 1.0f;
        this.lottieDuration = v;
    }

    public InterpolatorDurationHandle(long v, int v1) {
        this.LilIiL = 1.0f;
        this.lottieDuration = v;
        this.IliLLi1 = v1;
    }

    public InterpolatorDurationHandle(long v, int v1, int v2) {
        this.LilIiL = 1.0f;
        this.lottieDuration = v;
        this.IliLLi1 = v2;
        this.IIL11 = v1;
    }

    public void I1L1III(long v) {
        this.lottieDuration = v;
    }

    public int IIILiLlllL() {
        return this.interpolator == null ? ((int)(((float)this.IIL11) + this.ii1L1lILLI * ((float)(this.IliLLi1 - this.IIL11)))) : ((int)(((float)this.IIL11) + this.interpolator.getInterpolation(this.ii1L1lILLI) * ((float)(this.IliLLi1 - this.IIL11))));
    }

    public int IIL11() {
        return this.IliLLi1;
    }

    public void IL1LIL1IiilI(int v) {
        this.IIL11 = v;
    }

    public int Ii1ilIlII1l(long v) {
        long v1 = this.lottieDuration;
        if(v > v1) {
            this.ii1L1lILLI = 0.0f;
        }

        float f = this.ii1L1lILLI + ((float)(v % v1)) / ((float)v1);
        this.ii1L1lILLI = f;
        if((f > 1.0f)) {
            this.ii1L1lILLI = f - 1.0f;
            int v2 = this.IIL11;
            this.L1lLIll1lI1 = v2;
            this.IIL11 = this.IliLLi1;
            this.IliLLi1 = v2;
        }

        return this.interpolator == null ? ((int)(((float)this.IIL11) + this.ii1L1lILLI * ((float)(this.IliLLi1 - this.IIL11)))) : ((int)(((float)this.IIL11) + this.interpolator.getInterpolation(this.ii1L1lILLI) * ((float)(this.IliLLi1 - this.IIL11))));
    }

    public int IliLLi1() {
        return this.IIL11;
    }

    public Float L1lLIll1lI1(long v) {
        float f;
        long v1 = this.lottieDuration;
        if(Long.compare(v, v1) > 0) {
            this.ii1L1lILLI = 0.0f;
        }

        if(v1 == 0L) {
            return (float)0.0f;
        }

        this.ii1L1lILLI += ((float)(v % v1)) / ((float)v1);
        while(true) {
            f = this.ii1L1lILLI;
            if(!(f > 1.0f)) {
                break;
            }

            this.ii1L1lILLI = f - 1.0f;
        }

        return this.interpolator == null ? f : this.interpolator.getInterpolation(f);
    }

    public void LL1IL11i11l(float f) {
        this.ii1L1lILLI = f;
    }

    public float LilIiL() {
        return this.LilIiL;
    }

    public void LilIilii(float f) {
        this.LilIiL = f;
    }

    public void i1LllLIilll() {
        this.ii1L1lILLI = 0.0f;
    }

    public int i1l11LLIL(long v) {
        float f;
        long v1 = this.lottieDuration;
        if(v > v1) {
            this.ii1L1lILLI = 0.0f;
        }

        this.ii1L1lILLI += ((float)(v % v1)) / ((float)v1);
        while(true) {
            f = this.ii1L1lILLI;
            if(!(f > 1.0f)) {
                break;
            }

            this.ii1L1lILLI = f - 1.0f;
        }

        return this.interpolator == null ? ((int)(((float)this.IIL11) + f * ((float)(this.IliLLi1 - this.IIL11)))) : ((int)(((float)this.IIL11) + this.interpolator.getInterpolation(f) * ((float)(this.IliLLi1 - this.IIL11))));
    }

    public void iLi1L11lli(int v) {
        this.IliLLi1 = v;
    }

    public void iLiIiiI(boolean z) {
        this.ilIIL1IiL = z;
    }

    public boolean iLiLiIL1L(long v) {
        long v1 = this.lottieDuration;
        return Long.compare(v1, 0L) == 0 ? false : this.ii1L1lILLI + ((float)(v % v1)) / ((float)v1) > 1.0f;
    }

    public long ii1L1lILLI() {
        return this.lottieDuration;
    }

    public boolean ilIIL1IiL() {
        return this.ilIIL1IiL;
    }

    public float lIlI1liIIL() {
        return this.ii1L1lILLI;
    }
}

